package com.supermarket_project.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CashGood {
    //收银员的编号
    private Integer staffId;

    //日期
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd hh:mm")
    private Date time;

    //流水号
    private String serialNumber;

    //货物的ID
    private Integer goodId;

    //货物名称
    private String name;

    //货物单价
    private BigDecimal price;

    //折扣
    private Double discount;

    //数量
    private Integer quantity;

    //状态码
    private Integer status;

    //根据数量是否能购买
    private String buy;
}